package com.vartom.threadlocal;

/**
 *
 * @author lihuazeng
 */
public class ThreadLocalPool {
    private static final ThreadLocal<ThreadLocalPool> pool = new ThreadLocal<ThreadLocalPool>(){
        @Override
        protected ThreadLocalPool initialValue() {
            return new ThreadLocalPool();
        }
    };
    private ThreadLocalPool() {
    }

    public static ThreadLocalPool newInstance(){
        return pool.get();
    }
}